package com.rainy.sso.common.service;

import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Set;
import javax.annotation.Resource;
import com.rainy.sso.common.dao.PermissionDao;
import com.rainy.sso.client.entity.Permission;
import com.rainy.sso.client.service.PermissionService;

/**
* @author liuqin on 2017-12-21 14:26:10
*/
@Service("permissionService")
public class PermissionServiceImpl implements PermissionService {

	@Resource
	private PermissionDao permissionDao;

    @Override
    public List<Permission> list(Long offset, Long limit){
		return permissionDao.list(offset,limit);
	}

    @Override
    public Long count(Long offset,Long limit){
        return permissionDao.count(offset,limit);
	}

    @Override
    public Permission getPermissionById(Long id){
        return permissionDao.getPermissionById(id);
	}
	
	@Override
	public void save(Permission permission){
		permissionDao.save(permission);
	}
	
	@Override
	public void update(Permission permission){
		permissionDao.update(permission);
	}
	
	@Override
	public void delete(Long id){
		permissionDao.delete(id);
	}

	@Override
	public Set<Permission> queryPermissionByIds(List<Long> ids) {
		return permissionDao.queryPermissionByIds(ids);
	}



}
